import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '用户姓名',
    align: "center",
    dataIndex: 'realName'
  },
  // {
  //   title: '密码',
  //   align: "center",
  //   dataIndex: 'password'
  // },
  {
    title: '工号/卡号',
    align: "center",
    dataIndex: 'workNo'
  },
  {
    title: '指纹',
    align: "center",
    dataIndex: 'fingerprint'
  },
  {
    title: '人脸识别',
    align: "center",
    dataIndex: 'faceRecognition'
  },
  {
    title: '签名',
    align: "center",
    dataIndex: 'signature',
    customRender: render.renderImage,
  },
];

// 高级查询数据
export const superQuerySchema = {
  realName: {title: '用户姓名',order: 0,view: 'text', type: 'string',},
  password: {title: '密码',order: 1,view: 'password', type: 'string',},
  workNo: {title: '工号/卡号',order: 2,view: 'text', type: 'string',},
  fingerprint: {title: '指纹',order: 3,view: 'text', type: 'string',},
  faceRecognition: {title: '人脸识别',order: 4,view: 'text', type: 'string',},
  signature: {title: '签名',order: 5,view: 'image', type: 'string',},
};
